package com.wmz.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author wmz
 * @date 2024/7/19 23:08
 * @description 阿里云平台-对象存储OSS服务配置类
 */
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
@AllArgsConstructor
@NoArgsConstructor
@RefreshScope
public class AliyunOSSConfig {
    /**
     * 访问地址
     */
    private String endpoint;
    /**
     * buket 名称
     */
    private String bucketName;
    /**
     * 访问id
     */
    private String accessKeyId;
    /**
     * 访问密钥
     */
    private String accessKeySecret;
}
